package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_video")
public class CourseVideo extends Model<CourseVideo> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @TableField("statusId")
    private Integer statusId;

    private Integer sort;

    @TableField("courseId")
    private Long courseId;

    @TableField("chapterId")
    private Long chapterId;

    @TableField("periodId")
    private Long periodId;

    @TableField("videoName")
    private String videoName;

    @TableField("videoNo")
    private Long videoNo;

    @TableField("videoStatus")
    private Long videoStatus;

    @TableField("videoLength")
    private String videoLength;

    @TableField("videoVid")
    private String videoVid;

    @TableField("typeId")
    private Integer typeId;


    public static final String ID = "id";

    public static final String STATUSID = "statusId";

    public static final String SORT = "sort";

    public static final String COURSEID = "courseId";

    public static final String CHAPTERID = "chapterId";

    public static final String PERIODID = "periodId";

    public static final String VIDEONAME = "videoName";

    public static final String VIDEONO = "videoNo";

    public static final String VIDEOSTATUS = "videoStatus";

    public static final String VIDEOLENGTH = "videoLength";

    public static final String VIDEOVID = "videoVid";

    public static final String TYPEID = "typeId";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
